/**
 * Created with IntelliJ IDEA
 * Description:
 * User: SEKI TOMOKI
 * Date: 2023-10-02
 * Time: 17:02
 */
public class Test {

    public static void main(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        //mySingleLinkedList.createList();
        mySingleLinkedList.addFirst(12);
        mySingleLinkedList.addFirst(12);
        mySingleLinkedList.addFirst(12);
        mySingleLinkedList.addFirst(12);

        mySingleLinkedList.display();

        mySingleLinkedList.removeAllKey(12);

        mySingleLinkedList.display();


        System.out.println("长度:" + mySingleLinkedList.size());

        System.out.println("是否包含:" + mySingleLinkedList.contains(45));
    }
}
